﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AmiEmuLib.Host.HostInput
{
    /// <summary>
    /// Base class for all input devices.
    /// </summary>
    public abstract class HostInputDevice
    {
        /// <summary>
        /// Friendly name, Use in GUI.
        /// </summary>
        private string m_friendly_name = "";

        /// <summary>
        /// Friendly name, Use in GUI.
        /// </summary>
        public string FriendlyName
        {
            get
            {
                if (m_friendly_name != "")
                    return m_friendly_name;
                else
                    return DeviceName;
            }
            internal set
            {
                m_friendly_name = value;
            }
        }

        /// <summary>
        /// Device name. Use to identify device.
        /// </summary>
        public string DeviceName { get; internal set; }

        /// <summary>
        /// Constructor.
        /// </summary>
        internal HostInputDevice()
        {
        }
    }
}
